package com.atguigu.gulimall.auth.fegin;

import com.atguigu.common.utils.R;
import com.atguigu.gulimall.auth.vo.RegisterVo;
import com.atguigu.gulimall.auth.vo.SocialUserVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author lk
 * @version 1.0.0
 * @Description MemberFeignService
 * @createTime 2024/1/30 14:55
 */
@FeignClient("gulimall-member")
public interface MemberFeignService {

    @PostMapping("/member/member/regist")
    public R regist(@RequestBody RegisterVo vo);

    @PostMapping("/member/member/oauth2/login")
    public R oauthLogin(@RequestBody SocialUserVo socialUserVo) throws Exception;
}
